@import "./variables.scss";
@import "./mixin.scss";
@import "./transition.scss";
@import "./sidebar.scss";
@import "./ant.scss";
@import "./btn.scss";
@import './theme/index.scss';


body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
    Microsoft YaHei, Arial, sans-serif;
  min-height: 740px;
  min-width: 1366px;
}

@media screen and (max-width: 1000px) {
  body {
    zoom: 0.5;
  }
}

@media screen and (max-width: 1366px) {
  body {
    zoom: 0.8;
  }
}

@media screen and (min-width: 1440px) and (max-width: 1600px) {
}

@media only screen and (max-width: 992) {
}

@media only screen and (max-width: 767px) {
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center;
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

.echarts {
  width: 100%;
  height: 100%;
}

.el-card__header {
  border-bottom: none;
  padding: 0;
}

.btn-default {
  color: #fff;
  font-weight: bold;
}

@each $key, $color in (green, #73d13d), (primary, #1890ff), (blue, #66d2d6),
  (purple, #9b6ecd), (orange, #de734c), (yellow, #e7d46e), (red, #ed6d40),
  (confirm, #6e99df), (detail, #7fabdf)
{
  .btn-#{$key} {
    background-color: $color;

    &.ant-btn:hover,
    &.ant-btn:active,
    &.ant-btn:focus {
      background-color: rgba($color, 0.8);
      border-color: rgba($color, 0.8);
      color: #fff;
    }
  }
}

@each $key, $color in (green, #73d13d), (blue, #66d2d6), (purple, #9b6ecd),
  (orange, #de734c), (yellow, #e7d46e), (confirm, #6e99df), (detail, #7fabdf),
  (gray, #d9d9d9), (red, #ed6d40), (primary, #1890ff)
{
  .text-#{$key} {
    color: $color;
  }
}

.flex {
  display: flex;
}

.align-center {
  align-items: center;
}

.flex-end {
  justify-content: flex-end;
}

.justify-between {
  justify-content: space-between;
  align-items: center;
}

.mt-10 {
  margin-top: 10px;
}

.ml-10 {
  margin-left: 10px;
}

.table-btn {
  width: 90px;
  height: 32px;
  line-height: 32px;
  border-radius: 4px;
}

.ant-form-inline .ant-form-item-with-help {
  margin-bottom: 0;
}

.search-input {
  width: 180px;
  margin-right: 10px;
}

.search-date-input {
  width: 280px;
  margin-right: 10px;
}

.green-text {
  color: #68cd87 !important;
}

.gray-text {
  color: #999;
}

.red-text {
  color: #f56c6c !important;
}

.cursor-pointer {
  cursor: pointer;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.text-center {
  text-align: center;
}

.mr-10 {
  margin-right: 10px;
}

.flex-start {
  display: flex;
}

.cursor-pointer {
  cursor: pointer;
}
.inline-block {
  display: inline-block;
}
.w-60 {
  width: 60px;
}

.w-70 {
  width: 70px;
}

.overflow-auto {
  overflow: auto !important;

  .ant-table-body {
    overflow: auto !important;
  }
}

.tree-ellipsis .ant-tree-node-content-wrapper {
  overflow: hidden;
  text-overflow: ellipsis;
  width: calc(100% - 24px);
}
